package com.alex.server.service;

import com.alex.server.domain.User;
import com.alex.server.dto.LoginUserDto;
import com.alex.server.dto.UserDto;
import com.alex.server.dto.PageDto;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

/**
 * 课程章程service
 */
public interface IUserService {
    PageDto list(PageDto pageDto);

    void save(UserDto userDto);

    void insert(User user);

    void update(User user);

    void delete(String id);

    String loginSuccess(LoginUserDto loginUserDto, HttpServletRequest request, HttpServletResponse response) throws IOException, NoSuchAlgorithmException;
}